-- GENERATED SPELL FOR [Tar Lord] --


function spell0_6519(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(12747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6519', 11500, 1)
end

function spell1_6519(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_6519', 15000, 1)
end

function Sorts_6519(pUnit, Event)
local choix_sorts_6519 = math.random(0, 1)
if choix_sorts_6519 == 0 then
pUnit:RegisterEvent('spell0_6519', 1, 1)
end
if choix_sorts_6519 == 1 then
pUnit:RegisterEvent('spell1_6519', 1, 1)
end
end

function mob6519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6519', math.random(1500, 3000), 1)
end

function mob6519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6519, 1, 'mob6519_Action')
RegisterUnitEvent(6519, 2, 'mob6519_Leave')
RegisterUnitEvent(6519, 3, 'mob6519_Kill')
RegisterUnitEvent(6519, 4, 'mob6519_Die')
